<?php
global $_GPC, $_W;
$GLOBALS['frames'] = $this->getMainMenu();
$item=pdo_get('zh_gjhdbm_ticket',array('id'=>$_GPC['id']));
if(checksubmit('submit')){
    $data['tk_name']=$_GPC['tk_name'];
    $data['type']=$_GPC['type'];
    $data['money']=$_GPC['money'];
    $data['total_num']=$_GPC['total_num'];
    $data['limit_num']=$_GPC['limit_num'];            
    $data['bm_check']=$_GPC['bm_check'];
    $data['uniacid']=$_W['uniacid'];           
    $res = pdo_update('zh_gjhdbm_ticket', $data, array('id' => $_GPC['id']));
    if($res){
        message('编辑成功',$this->createWebUrl('hdpjlist',array('id'=>$item['activity_id'])),'success');
    }else{
        message('编辑失败','','error');
    }

}
include $this->template('web/addhdpj');